/*
 * @Author: zhuhaohua 250293786@qq.com
 * @Date: 2024-01-02 10:28:40
 * @LastEditors: DeluxePig 250293786@qq.com
 * @LastEditTime: 2024-06-25 23:14:39
 * @FilePath: \heart-backed\src\api\banner.js
 * @Description: 登录相关接口
 */
import request from '@/utils/request'

// 获取公众号扫码登录二维码信息
export function getQrcode(params) {
  return request({
    url: '/users-api/account/sign-in-wechat-qrcode',
    method: 'get',
    params
  })
}
// 获取公众号扫码登录二维码信息
export function getQrcodeStatus(params) {
  return request({
    url: '/users-api/account/sign-in-wechat-qrcode-status',
    method: 'get',
    params
  })
}
// 公众号授权登录
export function codeLogin(params) {
  return request({
    url: '/users-api/account/official-sign-in',
    method: 'get',
    params
  })
}

// 获取短信验证码
export function getCode(params) {
  return request({
    url: '/users-api/account/send-sign-in-code',
    method: 'POST',
    params
  })
}

// 登录/注册
export function signLogin(data) {
  return request({
    url: '/users-api/account/sign-in',
    method: 'POST',
    data
  })
}

// 下发绑定验证码
export function getBindCode(data) {
  return request({
    url: '/users-api/account/send-bind-code',
    method: 'POST',
    data
  })
}
// 腾讯类绑定已注册账号
export function accountBindApi(data) {
  return request({
    url: '/users-api/account/bind',
    method: 'POST',
    data
  })
}
